package pl.edu.agh.persdoc.model;

import org.ektorp.support.CouchDbDocument;
import org.joda.time.DateTime;

public class RegistrationKey extends CouchDbDocument {

		private static final long serialVersionUID = 1L;
		
		private String registrationKey;
		private DateTime creationDate;


		@Override
		public void setRevision(String s) {
			// downstream code does not like revision set to emtpy string, which Spring does when binding
			if (s != null && !s.isEmpty()) super.setRevision(s);
		}



		public void setCreationDate(DateTime creationDate) {
			this.creationDate = creationDate;
		}


		public DateTime getCreationDate() {
			return creationDate;
		}



		public void setRegistrationKey(String registrationKey) {
			this.registrationKey = registrationKey;
		}



		public String getRegistrationKey() {
			return registrationKey;
		}

}
